package com.example.ndkjnidemo.dashboard.bitmap;

import android.graphics.Bitmap;

/**
 * Created by guxiuzhong on 2020/9/24.
 */
public class JNIBitmap {

    // JNI Config 3 加载的jni库，库名：libndk-jni.so ,加载的时候省略lib和.so
    static {
        System.loadLibrary("ndk-jni");
    }

    /**
     * @param bitmap
     * @return
     */
    public native Bitmap negative(Bitmap bitmap);

    /**
     * @param bitmap
     * @return
     */
    public native int negativeChangeOrigin(Bitmap bitmap);

    /**
     * @param bitmap
     * @return
     */
    public native Bitmap cold(Bitmap bitmap);

    /**
     * @param bitmap
     * @return
     */
    public native Bitmap warm(Bitmap bitmap);

    /**
     * @param bitmap
     * @return
     */
    public native Bitmap blackAndWhite(Bitmap bitmap);

    /**
     * @param bitmap
     * @return
     */
    public native Bitmap gray(Bitmap bitmap);

    /**
     * @param bitmap
     * @return
     */
    public native Bitmap leftRight(Bitmap bitmap);

}
